import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
Vue.config.productionTip = false
import Home from './views/Home.vue'
const router = new Router({
    routes:[
        {
            path:'/',
            redirect:'index',
        },
        {
            path:'/',
            name:'home',
            component:Home,
            children:[
                {
                    path:'/index',
                    name:'index',
                    component:()=>import("./views/index/Index.vue"),
                    children:[
                        {
                            path:'/index',
                            name:'index',
                            component:()=>import("./components/index/VideoList.vue")
                        }
                    ]
                },
                {
                    path:'/follow',
                    name:'follow',
                    component:()=>import("./views/follow/Follow.vue")
                    

                }
                // {
                //     path:'/index',
                //     name:'index',
                //     component:()=>import("./views/index/Index.vue")

                // },
                // {
                //     path:'/index',
                //     name:'index',
                //     component:()=>import("./views/index/Index.vue")

                // },
            ]
        }
    ]
})
export default router